//引入
const Userlist = require('../data/userdata')
//获取全部数据列表
const getUserdata = async (req, res) => {
    let result = await Userlist.getUserdatalist()
    res.json({
        result
    })
}
//添加数据
const postUserdatalist = async (req, res) => {
    let result = await Userlist.postUserlist(req.body)
    res.json({
        result
    })
}
module.exports = {
    getUserdata,
    postUserdatalist
}
